This patch provides XmTestManagedDomain and XenManagedDomain classes
authorEwan Mellor <ewan@xensource.com>
Fri, 1 Dec 2006 17:37:09 +0000 (17:37 +0000)
committerEwan Mellor <ewan@xensource.com>
Fri, 1 Dec 2006 17:37:09 +0000 (17:37 +0000)
commitcebaab7c6b90391742eafd652c4aebc59f0e9052
tree5898eda3895ffd1890b47a6f93d5c212e78cd02b
parentc88422678e521f8a27260a2d5cffa0594c9fb300
This patch provides XmTestManagedDomain and XenManagedDomain classes
similar to the XmTestDomain and XenDomain classes. I have wrapped the
xen-api for VM configuration creation, starting and stopping of VMs and
destruction of the VM configuration in the XenManagedDomain class's
methods. No device-related functions are provided through the class.

The managed domains' UUIDs are tracked and all created VMs are destroyed
upon failure or skipping of the test or by calling
xapi.vm_destroy_all().

I am adding a new grouptest 'xapi' for running xen-api tests.

Only caveat: I am using an empty username and password
(XmTestList/xapi.py) with Xend's authentication deactivated to run these
tests.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/scripts/xapi.py
tools/xm-test/grouptest/xapi [new file with mode: 0644]
tools/xm-test/lib/XmTestLib/Test.py
tools/xm-test/lib/XmTestLib/XenManagedDomain.py [new file with mode: 0644]
tools/xm-test/lib/XmTestLib/xapi.py [new file with mode: 0644]
tools/xm-test/tests/vtpm/09_vtpm-xapi.py [new file with mode: 0644]
tools/xm-test/tests/vtpm/Makefile.am